package com.relatev.minecraft.TRMobAPI.Event;

import com.relatev.minecraft.TRMobAPI.TRMob;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class TRMobSpawnOverEvent extends Event {

    private static final HandlerList handlers = new HandlerList();
    private final TRMob TRMob;
    private final Location SpawnLocation;
    private final Entity Entity;

    public TRMobSpawnOverEvent(TRMob trm, Location loc, Entity ent) {
        TRMob = trm;
        SpawnLocation = loc;
        Entity = ent;
    }

    public Location getSpawnLocation() {
        return SpawnLocation;
    }

    public Entity getEntity() {
        return Entity;
    }

    public TRMob getTRMob() {
        return TRMob;
    }

    @Override
    public HandlerList getHandlers() {
        return handlers;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }
}
